import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SWrestleFightRecordPlayerInfo } from "./SWrestleFightRecordPlayerInfo";
type int = number;
//class SWrestleFightRecordInfo
    
    export  class SWrestleFightRecordInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.index);
            arg1.writeString(this.fightRecordId);
            this.winPlayer.__write(arg1);
            this.losePlayer.__write(arg1);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.index = arg1.readInt();
            this.fightRecordId = arg1.readString();
            this.winPlayer = new SWrestleFightRecordPlayerInfo();
            this.winPlayer.__read(arg1);
            this.losePlayer = new SWrestleFightRecordPlayerInfo();
            this.losePlayer.__read(arg1);
            return;
        }

        public /* var */index: int;

        public /* var */fightRecordId: string;

        public /* var */winPlayer: SWrestleFightRecordPlayerInfo;

        public /* var */losePlayer: SWrestleFightRecordPlayerInfo;
    }
